
<?php 
//handle languages
$iLang = $this->aDisplayedContent['language'];
$aProduct = $this->aDisplayedContent['product'];

$sThanks = "Vielen Dank f&uuml;r Ihr Interesse an unserem Produkt. Wir werden Sie so schnell wie m&ouml;glich kontaktieren.";
$sProductLink = "Zur&uuml;ck zum Produkt";
$sOr = "oder";
$sCategoryLink = "Zur&uuml;ck zur Kategorie ";

$sTitle ='Preisanfrage';
$sLegendProduct = 'Produktinformationen';
$sCategory ='Kategorie';
$sProductName ='Produktname';

$sLegendCustomer = 'Ihre Kontaktdaten';
$sCusotmerName = 'Ihr Name';
$sPhone = 'Telefon';
$sLegendMessage = 'Ihre Nachricht';

$sSubmit = 'Senden';

if ($iLang == 2){
$sThanks = "Thank you very much for your interest in our product. We will contact you as fast as possible.";
$sProductLink = "Back to the product";
$sOr = "or";
$sCategoryLink = "Back to category ";

$sTitle ='Send price request';
$sLegendProduct = 'Product information';
$sCategory ='Category';
$sProductName ='Product name';

$sLegendCustomer = 'Your contact information';
$sCusotmerName = 'Your name';
$sPhone = 'Phone';
$sLegendMessage = 'Your message';

$sSubmit = 'Send';
}elseif($iLang == 3){
    $sThanks = "Ürünümüzün ilgi için çok teşekkür ederiz. Biz mümkün olduğunca hızlı sizinle irtibata geçecektir.";
$sProductLink = "Ürüne Arkaya";
$sOr = "veya";
$sCategoryLink = "Kategoriye yedekleyin";

$sTitle ='Istek fiyat';
$sLegendProduct = 'Ürün bilgilerini';
$sCategory ='Kategori';
$sProductName ='Ürün adı';

$sLegendCustomer = 'İletişim Bilgileri';
$sCusotmerName = 'Adınız';
$sPhone = 'Telefon';
$sLegendMessage = 'Mesajınız';

$sSubmit = 'Göndermek';
}

?>
    
    	<h1><?=$sTitle?></h1>

	<?php if($this->aDisplayedContent['sendStatus'] == 1){?>
	    
	    <?=$sThanks ?>
	    <p><a href="index.php?ca=product&category=<?=$aProduct['category']?>&id=<?=$aProduct['id']?>"><?=$sProductLink ?></a> <?=$sOr ?> <a href="index.php?ca=product&category=<?=$aProduct['category']?>"><?=$sCategoryLink?></a></p>
	   
	<?php }elseif($this->aDisplayedContent['sendStatus'] == 0){
	    ?>
	    
<form action="index.php?co=priceRequest&m=sendRequest&id=<?=$aProduct['id']?>" method="post">
<input type="hidden" name="subject" value="Preisanfrage zu Produkt <?=$aProduct['name']?>">
  <input type="hidden" name="access" value="irregeheim">
<fieldset>
<legend><?=$sLegendProduct?></legend>
<table border="0">

<tr>
<td><?=$sCategory?>:&nbsp;</td>
<td><input type="text" name="category"
			size="40" maxlength="40" class="text" value="<?=$aProduct['category']?>" readonly="readonly"/></td>
</tr>

<tr>
<td><?=$sProductName ?>:&nbsp;&nbsp;</td>
<td><input type="text" name="productname"
			size="40" maxlength="40" class="text" value="<?=$aProduct['name']?>" readonly="readonly"/></td>
</tr>
</table>
</fieldset>
<br></br>

<fieldset>
<legend><?=$sLegendCustomer ?></legend>
<table border="0" width="100%">

<tr>
<td><?=$sCusotmerName ?>:&nbsp;</td>
<td><input type="text" name="customername"
			size="40" maxlength="40" class="text" value=""/></td>
</tr>

<tr>
<td>E-Mail:&nbsp;</td>
<td><input type="text" name="email"
			size="40" maxlength="40" class="text" value=""/></td>
</tr>

<tr>
<td><?=$sPhone ?>:&nbsp;</td>
<td><input type="text" name="phone"
			size="40" maxlength="40" class="text" value=""/></td>
</tr>

</table>
</fieldset>
<br></br>

<fieldset>
<legend><?=$sLegendMessage ?></legend>
<table border="0" width="100%">

<tr>
<td><textarea name="message" cols="50" rows="10"></textarea></td>
</tr>

</table>
</fieldset>

<p align="right"><input type="submit" value="<?=$sSubmit ?>"></p>

</form>
<p><a href="index.php?ca=product&category=<?=$aProduct['category']?>&id=<?=$aProduct['id']?>"><?=$sProductLink ?></a></p>
<?php }?>